package com.str.LLs;
class SLLNode {
  
  Object data;   // the data wrapped in the node
  SLLNode next;  // reference to the next Node

  // default constructor,empty node
  SLLNode() {}

  // constructor for node with given object
  SLLNode(Object obj) { data = obj; }

  // general constructor
  SLLNode(Object obj, SLLNode link) {  
    data = obj;
    next = link; 
  }

  public String toString()
  { return data.toString(); }
}
